﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Blokus
{
    public partial class WinScreen : ChildWindow
    {
        public WinScreen(int player1Score, int player2Score)
        {
            InitializeComponent();
            int winningPlayer;

            if (player1Score > player2Score)
            {
                winningPlayer = 1;
            }
            else
            {
                winningPlayer = 2;
            }

            txtHeader.Text = "Player " + winningPlayer + " Wins!";
            txtPlayer1Score.Text = "Player 1: " + player1Score;
            txtPlayer2Score.Text = "Player 2: " + player2Score;
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }
}

